package com.atkxp.stustatusmasystem.mapper;

import com.atkxp.stustatusmasystem.pojo.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2023/5/28-17:27
 */
@Repository
@Mapper
public interface MajorMapper {
    Major getMajorById(int id);

    List<Major> getAllMajor();
    List<Major> getAllMajorByTid(@Param("tid") String tid);
}
